package com.siyoumi.app.modules.app_book.vo;

import com.siyoumi.validator.annotation.HasAnyText;
import lombok.Data;

import javax.validation.constraints.Size;
import java.math.BigDecimal;

//退款申请
@Data
public class VoBookOrderRefundApplyAndAudit {
    @HasAnyText(message = "缺少订单号")
    private String order_id;

    @HasAnyText
    private BigDecimal refund_price; //退款金额

    @Size(max = 50)
    private String apply_desc;

    static public VoBookOrderRefundApplyAndAudit of(String order_id, BigDecimal refund_price, String apply_desc) {
        VoBookOrderRefundApplyAndAudit vo = new VoBookOrderRefundApplyAndAudit();
        vo.setOrder_id(order_id);
        vo.setRefund_price(refund_price);
        vo.setApply_desc(apply_desc);
        return vo;
    }
}
